/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ig.util;

import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

/**
 *
 * @author jsanchez
 */
public class AlignmentRender extends DefaultTableCellRenderer {

    public Component getTableCellRendererComponent(JTable table,
            Object value,
            boolean isSelected,
            boolean hasFocus,
            int row,
            int column) {
        super.getTableCellRendererComponent(table, value.toString(), isSelected, hasFocus, row, column);

        //if (column == 1) {
        //    setHorizontalAlignment(LEFT);
        //} else {
        setHorizontalAlignment(RIGHT);
        //}
        return this;
    }
}
